package com.example.xwen.activitylifecycle;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class Main2Activity extends AppCompatActivity {
    private static final String LIFE_TAG = "Main2Activity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {

        Log.v(Main2Activity.LIFE_TAG,"SecondActivity---->onCreate");

        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_main2);
    }
    @Override
    protected void onStart(){
        Log.v(Main2Activity.LIFE_TAG,"SecondActivity---->onStart");
        super.onStart();
    }
    @Override
    protected void onResume(){
        Log.v(Main2Activity.LIFE_TAG,"SecondActivity---->onResume");
        super.onResume();
    }
    @Override
    protected void onPause(){
        Log.v(Main2Activity.LIFE_TAG,"SecondActivity---->onPause");
        super.onPause();
    }
    @Override
    protected void onStop(){
        Log.v(Main2Activity.LIFE_TAG,"SecondActivity---->onStop");
        super.onStop();
    }
    @Override
    protected void onDestroy(){
        Log.v(Main2Activity.LIFE_TAG,"SecondActivity---->onDestroy");
        super.onDestroy();
    }
    @Override
    protected void onRestart(){
        Log.v(Main2Activity.LIFE_TAG,"SecondActivity---->onRestart");
        super.onRestart();
    }
}
